package com.icangya.domain;

import javax.persistence.*;
import java.sql.Timestamp;

@Entity
@Table(name = "pay_bean")
public class PayBean {

    private long id;//自增主键id

    private String mchId;//商户号

    private String mchKey;//商户key

    private String createTime;//时间

    private String status;//0:关闭，1：启用

    private String wxAppid;//公众号appid

    private String wxAppidKey;//公众号密匙

    private String storeId;//店Id

    private String requestUrl;//支付接口地址

    private String remark;//备注

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "request_url")
    public String getRequestUrl() {
        return requestUrl;
    }

    public void setRequestUrl(String requestUrl) {
        this.requestUrl = requestUrl;
    }



    @Basic
    @Column(name = "mch_id")
    public String getMchId() {
        return mchId;
    }

    public void setMchId(String mchId) {
        this.mchId = mchId;
    }

    @Basic
    @Column(name = "mch_key")
    public String getMchKey() {
        return mchKey;
    }

    public void setMchKey(String mchKey) {
        this.mchKey = mchKey;
    }
    @Basic
    @Column(name = "create_time")
    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
    @Basic
    @Column(name = "status")
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
    @Basic
    @Column(name = "wx_appid")
    public String getWxAppid() {
        return wxAppid;
    }

    public void setWxAppid(String wxAppid) {
        this.wxAppid = wxAppid;
    }
    @Basic
    @Column(name = "wx_appkey")
    public String getWxAppidKey() {
        return wxAppidKey;
    }

    public void setWxAppidKey(String wxAppidKey) {
        this.wxAppidKey = wxAppidKey;
    }
    @Basic
    @Column(name = "store_id")
    public String getStoreId() {
        return storeId;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId;
    }
    @Basic
    @Column(name = "remark")
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public PayBean() {
    }

    public PayBean(String mchId, String mchKey, String createTime, String status, String wxAppid, String wxAppidKey, String storeId, String requestUrl, String remark) {
        this.mchId = mchId;
        this.mchKey = mchKey;
        this.createTime = createTime;
        this.status = status;
        this.wxAppid = wxAppid;
        this.wxAppidKey = wxAppidKey;
        this.storeId = storeId;
        this.requestUrl = requestUrl;
        this.remark = remark;
    }
}
